import { request } from '../request'

const news = {
  newslist (params) {
    return request({
      method: 'Get',
      url: '/api/cms/front/news',
      params: params
    })
  },
  
  newslistBytype (params,type) {
    return request({
      method: 'Post',
      url: '/api/cms/front/news/'+type,
      params: params
    })
  },
  newsdetails (params) {
    return request({
      method: 'Get',
      url: '/api/cms/front/news/getById/' + params,
      params: params
    })
  }
}
export default news
